package practice1.string;

public class StringBuilderDemo {
    public static void main(String[] args) {
        String a = "boy next door";

        StringBuilder builder = new StringBuilder(a);
        builder.append(" as we can");
        System.out.println(builder);

          builder.replace(14,24," i love that");
        System.out.println(builder);

        builder.delete(14,26);
        System.out.println(builder);

        builder.insert(14,"as we can");
        System.out.println(builder);




    }
}
